# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=gyp
pkgver=20190716
_commit=fcd686f1880fa52a1ee78d3e98af1b88cb334528
pkgrel=1
pkgdesc="Generate Your Projects Meta-Build system"
options="!check" # Tests currently fail
url="https://gyp.gsrc.io"
arch="noarch"
license="BSD-3-Clause"
depends="py3-setuptools ninja"
source="https://github.com/chromium/gyp/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir"
}

cleanup_srcdir() {
	[ -d src ] && chmod -R +w src
	default_cleanup_srcdir
}

sha512sums="df0f97d44d37f2055885ecfe9b72db407cc537bb3c309537fa9a206807fd2e25ea3bda8a900fb81dbd12489eb5e806f2aead5e37c32e8c6d7c531735e3439069  fcd686f1880fa52a1ee78d3e98af1b88cb334528.tar.gz"
